﻿/*
=============================================================================
Author:魏宝辉通过CodeSmithe生成
CreatedTime:2012-8-12
Description:usergroup三层结构业务逻辑层
=============================================================================
*/
using System;
using System.Collections.Generic;
using System.Text;
using FTchina.DAL;
using FTchina.Models;
namespace FTchina.BLL
{
	public static partial class UsergroupManager
	{
		public static int AddUsergroup(Usergroup usergroup)
		{
			return UsergroupService.AddUsergroup(usergroup);
		}
		public static int DeleteUsergroupByid(int id)
		{
			return UsergroupService.DeleteUsergroupById(id);
		}
		
		public static int ModifyUsergroupByid(Usergroup usergroup)
		{
			return UsergroupService.ModifyUsergroupByid(usergroup);
		}
		
		
		public static IList<Usergroup> GetAllUsergroups()
		{
			return UsergroupService.GetAllUsergroups();
		}
		public static Usergroup GetUsergroupByid(int id)
		{
			return UsergroupService.GetUsergroupByid(id);
		}
		//分页查询 curragePage当前页NUMCount每页条数
		public static IList<Usergroup> ShowusergroupForPage(int curragePage,int NUMCount)
		{
			return 	UsergroupService.ShowusergroupForPage(curragePage,NUMCount);
		}
	}
}
